const app = getApp();
Page({
  data: {
    infoHeight: 67,
    contentSafeHeight: app.globalData.contentSafeHeight,
    avaterUrl:
      "https://security.dfteco.com/static/default_tenant/5f83f262be104cbeb9b73ca3c6978c68.svg",
    status: [
      {
        name: "新增",
        num: 100,
      },
      {
        name: "早退",
        num: 90,
      },
      {
        name: "迟到",
        num: 120,
      },
      {
        name: "离职",
        num: 400,
      },
      {
        name: "正常",
        num: 100,
      },
    ],
  },
  onShow() {
    if (typeof this.getTabBar === "function" && this.getTabBar()) {
      this.getTabBar().setData({
        selected: 2,
      });
    }
  },
  editinfo() {
    wx.navigateTo({
      url: "/pages/personcenter/editinfo/editinfo",
    });
  },
});
